package projet.service;

import projet.dao.DAOFactoryInterface;
import projet.dao.jpa.JPADAOFactory;

public class DAOUtil {
	
	private static DAOFactoryInterface daoFactory;
	// Configurable here:
	static {
		daoFactory = JPADAOFactory.getInstance();
	}

	public static DAOFactoryInterface getDAOFactory() {
		return daoFactory;
	}
	
	public static void setDAOFactory(DAOFactoryInterface daoFactory)
	{
		DAOUtil.daoFactory = daoFactory;
	}
}
